package fr.vvins.core.services;

import javax.annotation.Resource;
import javax.ws.rs.Path;

import org.springframework.stereotype.Component;

import fr.vvins.core.biz.exception.BizException;
import fr.vvins.core.biz.order.OrderManager;
import fr.vvins.core.biz.order.dto.OrderDto;
import fr.vvins.core.biz.order.dto.PaymentItemDto;
import fr.vvins.core.biz.order.dto.ShippingItemDto;
import fr.vvins.core.common.TechnicalException;

@Path("/order")
@Component("orderService")
public class OrderServiceImpl implements OrderService {

	@Resource(name="orderManager")
	private OrderManager manager;
	
	@Override
	public OrderDto getCurrentOrder(String token) throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto createNewOrder(String token) throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto deleteCurrentOrder(String token) throws BizException,
			TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto addItem(String token, String skuId, String quantity)
			throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto removeItem(String token, String skuId, String quantity)
			throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto addPayment(String token, PaymentItemDto payment)
			throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto removePayment(String token, String paymentId)
			throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto addShipping(String token, ShippingItemDto shipping)
			throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public OrderDto removeShipping(String token, String shippingId)
			throws BizException, TechnicalException {
		// TODO Auto-generated method stub
		return null;
	}

	public OrderManager getManager() {
		return manager;
	}

	public void setManager(OrderManager manager) {
		this.manager = manager;
	}

}
